<template><div></div></template>
<script>
import i18n from "./locale";
import store from "./store";

export default {
  name: "test",
  data() {
    return {
      i18n: i18n
    };
  },
  //在keep-live才会被反复触发
  activated() {
    let access = this.$store.state.user.access;
    if (access == "super_admin") {
      this.$router.push({
        name: "test-list-a"
      });
    } else {
      this.$router.push({
        name: "test-list-b"
      });
    }
  }
};
</script>
<style lang="less">
.test-list {
  color: #f00;
}
</style>
